home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
x11
/
strategy
/
xpat2-1.000
/
xpat2-1
/
xpat2-1.04
/
Makefile
< prev
next >
Wrap
Makefile
|
1995-10-13
|
2KB
|
56 lines
# Note: Typing 'make' from this level will rebuild xpat2 from scratch.
# Afterwards, type 'make install' (as root) to install the game
# in default directories. A manual is in the doc subdirectory.
# You may run LaTeX (2.09) on it using 'make manual'.
#
# You may change src/Imakefile for different configurations.
# But then, you're on your own...
#
# Should you add / improve translations, please send a copy to
# m.bischoff@tu-bs.de for inclusion in future releases.
all:
(cd src && xmkmf && $(MAKE) && strip xpat2)
manual:
(cd doc && $(MAKE) xpat2.ps)
# different install targets: imake default, local, Linux FSSTND
install:
(cd src && $(MAKE) install)
install.local:
(cd src && $(MAKE) install.local)
install.fsstnd:
(cd src && $(MAKE) install.fsstnd)
clean:
(cd src && xmkmf && $(MAKE) clean)
(cd doc && $(MAKE) clean)
rm -f src/Makefile src/xpat2X*
find . -name "*~" -exec rm \{\} \;
distrib:
$(MAKE) clean
(cd ..; tar cvfz xpat2-1.04-src.tar.gz xpat2-1.04)
bindistrib:
(cd /; tar cvfz $(HOME)/xpat2-1.04-bin.tar.gz var/games/xpat* \
usr/games/bin/xpat2 usr/man/man6/xpat2.6x usr/doc/xpat2.dvi \
usr/doc/xpat2.lsm usr/games/lib/xpat)
allinterfaces:
# select a subset of Xlib Xaw Xview Motif
# 'make install' will use the last one you selected
for iface in Xlib Xview Xaw; \
do \
rm -f src/X*.o; \
sed -e "1,40s/undef use$$iface/define use$$iface/" \
< src/Imakefile.none > src/Imakefile; \
(cd src && xmkmf && make xpat2 && strip xpat2 && \
cp xpat2 xpat2$$iface); \
cp lib/XPat.ad.$$iface src/XPat.ad; \
done